package com.view.system.service.impl;

import java.util.List;
import com.view.common.utils.DateUtils;
import com.view.system.domain.show.QueryInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.view.system.mapper.TblApplicationInfoMapper;
import com.view.system.domain.TblApplicationInfo;
import com.view.system.service.ITblApplicationInfoService;

/**
 * 申请数据Service业务层处理
 * 
 * @author lz
 * @date 2024-03-01
 */
@Service
public class TblApplicationInfoServiceImpl implements ITblApplicationInfoService 
{
    @Autowired
    private TblApplicationInfoMapper tblApplicationInfoMapper;

    /**
     * 查询申请数据
     * 
     * @param applyId 申请数据主键
     * @return 申请数据
     */
    @Override
    public TblApplicationInfo selectTblApplicationInfoByApplyId(String applyId)
    {
        return tblApplicationInfoMapper.selectTblApplicationInfoByApplyId(applyId);
    }

    /**
     * 查询申请数据列表
     * 
     * @param tblApplicationInfo 申请数据
     * @return 申请数据
     */
    @Override
    public List<TblApplicationInfo> selectTblApplicationInfoList(TblApplicationInfo tblApplicationInfo)
    {
        return tblApplicationInfoMapper.selectTblApplicationInfoList(tblApplicationInfo);
    }

    /**
     * 新增申请数据
     * 
     * @param tblApplicationInfo 申请数据
     * @return 结果
     */
    @Override
    public int insertTblApplicationInfo(TblApplicationInfo tblApplicationInfo)
    {
        tblApplicationInfo.setCreateTime(DateUtils.getNowDate());
        return tblApplicationInfoMapper.insertTblApplicationInfo(tblApplicationInfo);
    }

    /**
     * 修改申请数据
     * 
     * @param tblApplicationInfo 申请数据
     * @return 结果
     */
    @Override
    public int updateTblApplicationInfo(TblApplicationInfo tblApplicationInfo)
    {
        return tblApplicationInfoMapper.updateTblApplicationInfo(tblApplicationInfo);
    }

    /**
     * 批量删除申请数据
     * 
     * @param applyIds 需要删除的申请数据主键
     * @return 结果
     */
    @Override
    public int deleteTblApplicationInfoByApplyIds(String[] applyIds)
    {
        return tblApplicationInfoMapper.deleteTblApplicationInfoByApplyIds(applyIds);
    }

    /**
     * 删除申请数据信息
     * 
     * @param applyId 申请数据主键
     * @return 结果
     */
    @Override
    public int deleteTblApplicationInfoByApplyId(String applyId)
    {
        return tblApplicationInfoMapper.deleteTblApplicationInfoByApplyId(applyId);
    }

    @Override
    public List<QueryInfo> queryTblApplicationInfoList(QueryInfo queryInfo) {
        {
            return tblApplicationInfoMapper.queryTblApplicationInfoList(queryInfo);
        }
    }
}
